const obox = document.querySelector(".hide");
const owelcome = document.querySelector(".welcome");
const un = owelcome.querySelector("span");
const quit = owelcome.querySelector("em");

const goCart = document.querySelector("#goCart");

if(localStorage.getItem("isLogin") === "ok"){
    obox.style.display = "none";
    owelcome.style.display = "block";
    un.innerHTML = localStorage.getItem("username")
}else{
    obox.style.display = "block";
    owelcome.style.display = "none";
}

quit.onclick = function(){
    localStorage.setItem("isLogin", "");
    localStorage.setItem("username", "");
    
    un.innerHTML = "";
    obox.style.display = "block";
    owelcome.style.display = "none";
}
















